import axios from 'common/js/axios';

// 热门搜索
export function getHotSearch() {
  return axios.get('/search/hot');
}
// 关键词搜索
export function search(keywords, limit, page, singer = false) {
  let type = singer ? '100' : '1';
  let data = { keywords, limit, offset: page - 1, type };
  return axios.get('/search/detail', { params: data });
}
